// wgltexture.hpp
//

#ifndef _WGLTEXTURE_HPP
#define _WGLTEXTURE_HPP

#include "wgl/wglbase.hpp"
#include "wgl/wgl_gltypes.hpp"

namespace wgl
{
  // Texture
  //
  class WGL_API Texture
  {
  public:
    ~Texture ();

    GLuint get_id () const { return glid; }
    
    void load ( const std::string &path );
    GLuint upload ();
    
  private:
    size_t width;
    size_t height;
    unsigned char *image{};
    GLuint glid{};
  };
}

#endif
